<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class SponsorValidate extends Validate
{

    protected $rule = [
        ['aid|活动', 'require'],
        ['title|赞助商', 'require|length:1,40'],
        ['name|赞助人', 'require'],
        ['mobile|联系方式', 'require'],
        ['content|赞助商说明', 'require']
    ];

    protected $scene = [
        'add'=>['title','name','mobile','content', 'aid'],
        'edit'=>['title','name','mobile','content', 'aid'],
    ];

//    public function aaa($value, $rule, $data){
//
//    }



}
